<div class="grid_9">

<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>

<div class="inner-border">
<h6>Add User Level</h6>
	<?php 
		$formAttrib = array('id' => 'adduser', 'class' => 'admin-form');
		$userNameAttrib = array('name' => 'username', 'value' => '', 'id' => 'username');
		$passwordAttrib = array('name' => 'password', 'value' => '', 'id' => 'password');
		$optionAttrib = array( '1' => 'Select user type..', 'admin' => 'Admin', 'president' => 'President', 'dean' => 'Dean', 'registrar' => 'Registrar',
			'finance' => 'Accountant', 'hrd' => 'HR', 'teacher' => 'Teacher', 'librarian' => 'Librarian', 'custodian' => 'Custodian',
			'cashier' => 'Cashier', 'assistant' => 'Assistant', 'student' => 'Student'
		);
		
		
		echo form_open('post/add_user', $formAttrib);
		
	?>
    
    <div class="input-block">
    <?php
		echo form_label('Username :', 'username');
		echo form_input($userNameAttrib);		
	?>
    </div>
    
    <div class="input-block">
    <?php
		echo form_label('Password :', 'password');
		echo form_password($passwordAttrib);
	?>
    </div>
    
     <div class="input-block">
    <?php
		echo form_label('User type :', 'usertype');
		echo form_dropdown('usertype', $optionAttrib, '1', 'class="usertype-dropdown"');
	?>
    </div>
    
    
   
   
    <div class="input-block">
   		<?php echo form_submit('add', 'Add'); ?>
    </div>

</div>
</div>